home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 142
/
Volume 142 Oct 17 2011 - Damaged.iso
/
Games
/
panda-star.swf
/
scripts
/
__Packages
/
mochi
/
MochiScores.as
< prev
next >
Wrap
Text File
|
2011-10-17
|
27KB
|
649 lines
function §\x01\x02§()
{
return 1260 % 511 * 5;
}
var §\x01§ = -305 + "\x01\x02"();
while(true)
{
if(eval("\x01") == 885)
{
set("\x01",eval("\x01") - 641);
§§push(true);
}
else if(eval("\x01") == 792)
{
set("\x01",eval("\x01") - 750);
§§push(true);
}
else
{
if(eval("\x01") == 966)
{
set("\x01",eval("\x01") - 643);
if(!_global.mochi)
{
_global.mochi = new Object();
}
function §\x01\x02§()
{
return 1260 % 511 * 5;
}
if(!_global.mochi.MochiScores)
{
var _loc2_ = mochi.MochiScores = function()
{
}.prototype;
mochi.MochiScores = function()
{
}.setBoardID = function(boardID)
{
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID",{boardID:boardID});
};
mochi.MochiScores = function()
{
}.showLeaderboard = function(options)
{
if(options.clip == null || options.clip == undefined)
{
options.clip = mochi.MochiServices.clip;
}
if(options.clip != mochi.MochiServices.__get__clip() || mochi.MochiServices.__get__childClip()._target == undefined)
{
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(),options.clip);
}
delete options.clip;
if(options.name != null)
{
if(typeof options.name == "object")
{
if(options.name.text != undefined)
{
options.name = options.name.text;
}
}
}
if(options.score != null)
{
if(options.score instanceof TextField)
{
if(options.score.text != undefined)
{
options.score = options.score.text;
}
}
else if(options.score instanceof mochi.MochiDigits)
{
options.score = options.score.value;
}
var _loc1_ = Number(options.score);
if(isNaN(_loc1_))
{
trace("ERROR: Submitted score \'" + options.score + "\' will be rejected, score is \'Not a Number\'");
}
else if(_loc1_ == -Infinity || _loc1_ == Infinity)
{
trace("ERROR: Submitted score \'" + options.score + "\' will be rejected, score is an infinite");
}
else
{
if(Math.floor(_loc1_) != _loc1_)
{
trace("WARNING: Submitted score \'" + options.score + "\' will be truncated");
}
options.score = _loc1_;
}
}
if(options.onDisplay != null)
{
options.onDisplay();
}
else
{
mochi.MochiServices.__get__clip().stop();
}
if(options.onClose != null)
{
mochi.MochiScores.onClose = options.onClose;
}
else
{
mochi.MochiScores.onClose = function()
{
};
}
if(options.onError != null)
{
mochi.MochiScores.onError = options.onError;
}
else
{
mochi.MochiScores.onError = mochi.MochiScores.onClose;
}
if(options.boardID == null)
{
if(mochi.MochiScores.boardID != null)
{
options.boardID = mochi.MochiScores.boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard",{options:options},null,mochi.MochiScores.doClose);
};
mochi.MochiScores = function()
{
}.closeLeaderboard = function()
{
mochi.MochiServices.send("scores_closeLeaderboard");
};
mochi.MochiScores = function()
{
}.getPlayerInfo = function(callbackObj, callbackMethod)
{
mochi.MochiServices.send("scores_getPlayerInfo",null,callbackObj,callbackMethod);
};
mochi.MochiScores = function()
{
}.submit = function(score, name, callbackObj, callbackMethod)
{
score = Number(score);
if(isNaN(score))
{
trace("ERROR: Submitted score \'" + String(score) + "\' will be rejected, score is \'Not a Number\'");
}
else if(score == -Infinity || score == Infinity)
{
trace("ERROR: Submitted score \'" + String(score) + "\' will be rejected, score is an infinite");
}
else
{
if(Math.floor(score) != score)
{
trace("WARNING: Submitted score \'" + String(score) + "\' will be truncated");
}
score = Number(score);
}
mochi.MochiServices.send("scores_submit",{score:score,name:name},callbackObj,callbackMethod);
};
mochi.MochiScores = function()
{
}.requestList = function(callbackObj, callbackMethod)
{
mochi.MochiServices.send("scores_requestList",null,callbackObj,callbackMethod);
};
mochi.MochiScores = function()
{
}.scoresArrayToObjects = function(scores)
{
var _loc5_ = {};
var _loc1_ = undefined;
var _loc4_ = undefined;
var _loc2_ = undefined;
var _loc6_ = undefined;
for(var _loc8_ in scores)
{
if(typeof scores[_loc8_] == "object")
{
if(scores[_loc8_].cols != null && scores[_loc8_].rows != null)
{
_loc5_[_loc8_] = [];
_loc2_ = scores[_loc8_];
_loc4_ = 0;
while(_loc4_ < _loc2_.rows.length)
{
_loc6_ = {};
_loc1_ = 0;
while(_loc1_ < _loc2_.cols.length)
{
_loc6_[_loc2_.cols[_loc1_]] = _loc2_.rows[_loc4_][_loc1_];
_loc1_ = _loc1_ + 1;
}
_loc5_[_loc8_].push(_loc6_);
_loc4_ = _loc4_ + 1;
}
}
else
{
_loc5_[_loc8_] = {};
for(var _loc7_ in scores[_loc8_])
{
_loc5_[_loc8_][_loc7_] = scores[_loc8_][_loc7_];
}
}
}
else
{
_loc5_[_loc8_] = scores[_loc8_];
}
}
return _loc5_;
};
mochi.MochiScores = function()
{
}.doClose = function(args)
{
if(args.error == true)
{
if(args.errorCode == undefined)
{
args.errorCode = "IOError";
}
mochi.MochiScores.onError.apply(null,[args.errorCode]);
}
else
{
mochi.MochiScores.onClose.apply();
}
};
§§push(ASSetPropFlags(mochi.MochiScores.prototype,null,1));
}
§§pop();
break;
}
if(eval("\x01") == 399)
{
set("\x01",eval("\x01") + 567);
}
else if(eval("\x01") == 369)
{
set("\x01",eval("\x01") - 252);
§§push(eval(function §\x01\x02§()
{
return 1260 % 511 * 5;
}));
}
else if(eval("\x01") == 42)
{
set("\x01",eval("\x01") + 491);
if(function §\x01\x02§()
{
return 1260 % 511 * 5;
})
{
set("\x01",eval("\x01") - 226);
}
}
else if(eval("\x01") == 641)
{
set("\x01",eval("\x01") + 151);
}
else if(eval("\x01") == 755)
{
set("\x01",eval("\x01") + 37);
}
else
{
if(eval("\x01") == 533)
{
set("\x01",eval("\x01") - 226);
break;
}
if(eval("\x01") == 307)
{
set("\x01",eval("\x01") + 308);
}
else if(eval("\x01") == 311)
{
set("\x01",eval("\x01") + 88);
if(function §\x01\x02§()
{
return 1260 % 511 * 5;
})
{
set("\x01",eval("\x01") + 567);
}
}
else if(eval("\x01") == 117)
{
set("\x01",eval("\x01") + 194);
§§push(!function §\x01\x02§()
{
return 1260 % 511 * 5;
});
}
else
{
if(eval("\x01") == 889)
{
set("\x01",eval("\x01") - 134);
gotoAndStop(42571);
§§enumerate(function §\x01\x02§()
{
return 1260 % 511 * 5;
});
gotoAndStop(1345);
§§pop()[[]][§§constant(41)][§§constant(21)] = eval("�@�")[§§constant(3)][§§constant(41)][§§constant(19)];
eval("�@�")[§§constant(3)][§§constant(41)][§§constant(85)] = 0;
eval("�@�")[§§constant(3)][§§constant(41)][§§constant(86)] = {};
eval("�@�")[§§constant(3)][§§constant(41)][§§constant(33)](eval("�@�")[§§constant(3)][§§constant(49)]);
trace(§§constant(87));
§§pop()[§§pop()] = §§pop();
mochi.MochiScores = function()
{
}[§§constant(29)] = function()
{
if(!eval("�@�")[§§constant(3)][§§constant(32)])
{
eval("�@�")[§§constant(3)][§§constant(76)][§§constant(80)] = function(infoObject)
{
eval("�@�")[§§constant(3)][§§constant(80)](infoObject);
};
eval("�@�")[§§constant(3)][§§constant(76)][§§constant(91)](eval("�@�")[§§constant(3)][§§constant(27)],§§constant(90),{§\§\§constant(88)§:§§constant(89)});
eval("�@�")[§§constant(3)][§§constant(76)][§§constant(91)](eval("�@�")[§§constant(3)][§§constant(27)],§§constant(90),{§\§\§constant(88)§:§§constant(92),§\§\§constant(93)§:eval("�@�")[§§constant(3)][§§constant(6)],§\§\§constant(94)§:eval("�@�")[§§constant(3)][§§constant(10)],§\§\§constant(95)§:eval(§§constant(96))});
eval("�@�")[§§constant(3)][§§constant(41)][§§constant(80)] = function(infoObject)
{
eval("�@�")[§§constant(3)][§§constant(80)](infoObject);
};
eval("�@�")[§§constant(3)][§§constant(41)][§§constant(90)] = function(pkg)
{
var _loc5_ = pkg[§§constant(97)];
var _loc4_ = this[§§constant(86)][_loc5_];
if(!_loc4_)
{
return undefined;
}
var _loc2_ = _loc4_[§§constant(98)];
var _loc3_ = _loc4_[§§constant(99)];
if(_loc3_ && typeof _loc2_ == §§constant(100))
{
_loc2_ = _loc3_[_loc2_];
}
if(_loc2_ != undefined)
{
_loc2_[§§constant(63)](_loc3_,pkg[§§constant(101)]);
}
delete this[§§constant(86)][_loc5_];
};
eval("�@�")[§§constant(3)][§§constant(41)][§§constant(37)] = function()
{
eval("�@�")[§§constant(3)][§§constant(37)][§§constant(63)](null,[§§constant(68)]);
};
trace(§§constant(102));
eval("�@�")[§§constant(3)][§§constant(35)] = false;
eval("�@�")[§§constant(3)][§§constant(32)] = true;
while(eval("�@�")[§§constant(3)][§§constant(76)][§§constant(78)][§§constant(26)] > 0)
{
eval("�@�")[§§constant(3)][§§constant(76)][§§constant(91)](eval("�@�")[§§constant(3)][§§constant(27)],§§constant(90),eval("�@�")[§§constant(3)][§§constant(76)][§§constant(78)][§§constant(103)]());
}
}
};
mochi.MochiScores = function()
{
}[§§constant(39)] = function(error)
{
var _loc1_ = undefined;
var _loc2_ = undefined;
while(eval("�@�")[§§constant(3)][§§constant(76)][§§constant(78)][§§constant(26)] > 0)
{
_loc1_ = eval("�@�")[§§constant(3)][§§constant(76)][§§constant(78)][§§constant(103)]();
false;
if(_loc1_[§§constant(97)] != null)
{
_loc2_ = eval("�@�")[§§constant(3)][§§constant(41)][§§constant(86)][_loc1_[§§constant(97)]];
}
delete eval("�@�")[§§constant(3)][§§constant(41)][§§constant(86)][_loc1_[§§constant(97)]];
if(error)
{
eval("�@�")[§§constant(3)][§§constant(104)](_loc1_[§§constant(101)],_loc2_[§§constant(99)],_loc2_[§§constant(98)]);
}
}
};
mochi.MochiScores = function()
{
}[§§constant(104)] = function(args, callbackObject, callbackMethod)
{
if(args != null)
{
if(args[§§constant(37)] != null)
{
args[§§constant(37)][§§constant(63)](null,[§§constant(105)]);
}
if(args[§§constant(106)] != null && args[§§constant(106)][§§constant(37)] != null)
{
args[§§constant(106)][§§constant(37)][§§constant(63)](null,[§§constant(105)]);
}
}
if(callbackMethod != null)
{
args = {};
args[§§constant(82)] = true;
args[§§constant(107)] = §§constant(105);
if(callbackObject != null && typeof callbackMethod == §§constant(100))
{
callbackObject.callbackMethod(args);
}
else if(callbackMethod != null)
{
callbackMethod[§§constant(63)](args);
}
}
};
mochi.MochiScores = function()
{
}[§§constant(91)] = function(methodName, args, callbackObject, callbackMethod)
{
if(eval("�@�")[§§constant(3)][§§constant(32)])
{
eval("�@�")[§§constant(3)][§§constant(76)][§§constant(91)](eval("�@�")[§§constant(3)][§§constant(27)],§§constant(90),{§\§\§constant(88)§:methodName,§\§\§constant(101)§:args,§\§\§constant(97)§:eval("�@�")[§§constant(3)][§§constant(41)][§§constant(85)]});
}
else
{
if(eval("�@�")[§§constant(3)][§§constant(10)] == undefined || !eval("�@�")[§§constant(3)][§§constant(35)])
{
eval("�@�")[§§constant(3)][§§constant(37)][§§constant(63)](null,[§§constant(105)]);
eval("�@�")[§§constant(3)][§§constant(104)](args,callbackObject,callbackMethod);
eval("�@�")[§§constant(3)][§§constant(39)](true);
return undefined;
}
eval("�@�")[§§constant(3)][§§constant(76)][§§constant(78)][§§constant(108)]({§\§\§constant(88)§:methodName,§\§\§constant(101)§:args,§\§\§constant(97)§:eval("�@�")[§§constant(3)][§§constant(41)][§§constant(85)]});
}
eval("�@�")[§§constant(3)][§§constant(41)][§§constant(86)][eval("�@�")[§§constant(3)][§§constant(41)][§§constant(85)]] = {§\§\§constant(99)§:callbackObject,§\§\§constant(98)§:callbackMethod};
eval("�@�")[§§constant(3)][§§constant(41)][§§constant(85)]++;
};
mochi.MochiScores = function()
{
}[§§constant(45)] = function()
{
var _loc5_ = {};
if(_root[§§constant(73)])
{
var _loc4_ = _root[§§constant(73)][§§constant(16)](§§constant(109));
var _loc2_ = 0;
while(_loc2_ < _loc4_[§§constant(26)])
{
var _loc3_ = _loc4_[_loc2_][§§constant(16)](§§constant(110));
_loc5_[§§constant(111)(_loc3_[0])] = §§constant(111)(_loc3_[1]);
_loc2_ = _loc2_ + 1;
}
}
return _loc5_;
};
mochi.MochiScores = function()
{
}[§§constant(112)] = function(url, burl, btn, onClick)
{
var §§constant(113) = 1500;
var §§constant(114) = getTimer();
var _loc2_ = new §\x0f���§();
_loc2_[§§constant(115)] = eval(§§constant(96));
_loc2_[§§constant(116)] = btn[§§constant(117)]() || 6;
_loc2_[§§constant(118)] = btn[§§constant(119)];
_loc2_[§§constant(120)] = eval(§§constant(17))[§§constant(121)][§§constant(95)];
_loc2_[§§constant(122)] = eval(§§constant(17))[§§constant(121)][§§constant(122)];
_loc2_[§§constant(123)] = eval(§§constant(17))[§§constant(121)][§§constant(124)];
_loc2_[§§constant(125)] = eval(§§constant(17))[§§constant(121)][§§constant(126)] + §§constant(127) + eval(§§constant(17))[§§constant(121)][§§constant(128)];
var §§constant(129) = §§constant(130);
var _loc3_ = 0;
for(var _loc6_ in _loc2_)
{
if(_loc3_ != 0)
{
set(§§constant(129),eval(§§constant(129)) + §§constant(109));
}
_loc3_ = _loc3_ + 1;
set(§§constant(129),eval(§§constant(129)) + _loc6_ + §§constant(110) + §§constant(74)(_loc2_[_loc6_]));
}
if(!(eval("�@�")[§§constant(3)][§§constant(131)] || eval("�@�")[§§constant(3)][§§constant(32)]))
{
var §§constant(132) = btn[§§constant(48)](§§constant(132),777);
var _loc7_ = btn[§§constant(48)](§§constant(133),778);
eval("�@�")[§§constant(3)][§§constant(131)] = true;
eval(§§constant(132))[§§constant(135)](§§constant(134) + getTimer());
_loc7_[§§constant(136)] = function()
{
if(eval(§§constant(132))[§§constant(137)] > 0 && eval(§§constant(132))[§§constant(137)] == eval(§§constant(132))[§§constant(138)])
{
delete this[§§constant(136)];
}
else if(getTimer() - eval(§§constant(114)) > eval(§§constant(113)))
{
delete this[§§constant(136)];
eval("�@�")[§§constant(3)][§§constant(139)] = false;
}
};
}
var _loc4_ = btn[§§constant(48)](§§constant(140),1001);
_loc4_[§§constant(141)] = 0;
_loc4_[§§constant(142)](1044735);
_loc4_[§§constant(143)](0,0);
_loc4_[§§constant(145)](0,btn[§§constant(144)]);
_loc4_[§§constant(145)](btn[§§constant(146)],btn[§§constant(144)]);
_loc4_[§§constant(145)](btn[§§constant(146)],0);
_loc4_[§§constant(145)](0,0);
_loc4_[§§constant(147)]();
_loc4_[§§constant(148)] = function()
{
if(eval("�@�")[§§constant(3)][§§constant(139)])
{
getURL(eval(§§constant(149)) + eval(§§constant(129)),§§constant(150));
}
else
{
getURL(eval(§§constant(151)),§§constant(150));
}
if(eval(§§constant(152)) != undefined)
{
§§constant(152)();
}
};
};
mochi.MochiScores = function()
{
}[§§constant(47)] = §§constant(153);
mochi.MochiScores = function()
{
}[§§constant(49)] = §§constant(154);
mochi.MochiScores = function()
{
}[§§constant(35)] = false;
mochi.MochiScores = function()
{
}[§§constant(32)] = false;
mochi.MochiScores = function()
{
}[§§constant(139)] = true;
mochi.MochiScores = function()
{
}[§§constant(131)] = false;
§§constant(160)(eval("�@�")[§§constant(3)][§§constant(4)],null,1);
§§push((mochi.MochiScores = function()
{
})[§§constant(156)](§§constant(155),mochi.MochiScores = function()
{
}[§§constant(9)],function()
{
}
));
§§push((mochi.MochiScores = function()
{
})[§§constant(156)](§§constant(94),mochi.MochiScores = function()
{
}[§§constant(7)],function()
{
}
));
§§push((mochi.MochiScores = function()
{
})[§§constant(156)](§§constant(157),function()
{
}
,mochi.MochiScores = function()
{
}[§§constant(25)]));
§§push((mochi.MochiScores = function()
{
})[§§constant(156)](§§constant(158),mochi.MochiScores = function()
{
}[§§constant(31)],function()
{
}
));
§§push((mochi.MochiScores = function()
{
})[§§constant(156)](§§constant(93),mochi.MochiScores = function()
{
}[§§constant(5)],function()
{
}
));
§§push((mochi.MochiScores = function()
{
})[§§constant(156)](§§constant(159),mochi.MochiScores = function()
{
}[§§constant(22)],function()
{
}
));
break;
}
if(eval("\x01") == 615)
{
set("\x01",eval("\x01") - 586);
§§push("\x0f");
§§push(1);
}
else if(eval("\x01") == 244)
{
set("\x01",eval("\x01") + 645);
if(function §\x01\x02§()
{
return 1260 % 511 * 5;
})
{
set("\x01",eval("\x01") - 134);
}
}
else if(eval("\x01") == 610)
{
set("\x01",eval("\x01") + 5);
}
else
{
if(eval("\x01") == 323)
{
set("\x01",eval("\x01") - 323);
break;
}
if(eval("\x01") == 29)
{
set("\x01",eval("\x01") - 29);
var §§pop() = function §\x01\x02§()
{
return 1260 % 511 * 5;
};
}
else
{
if(eval("\x01") != 0)
{
break;
}
set("\x01",eval("\x01") + 369);
§§push("\x0f");
}
}
}
}
}
}